<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图文混排</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 300px;
            height: 300px;
            position: relative;
            margin-left:5px;
            margin-top:5px;
            perspective:1000px;
            display: inline-block;
        }
        .box .box-img,.box-content,img{
            width: 100%;
            height: 100%;
        }
       .box  .box-img,.box-content{
            position: absolute;
            left:0;
            top:0;
           transition: all 0.50s ease-in-out 0s;
        }
        .box-content{
            background: rgba(0,0,0,0.7);
            color: white;
            text-align: center;
        }
        .box .title{
            font-size: 20px;
            text-transform: uppercase;
        }
        .box .description{
            font-size: 14px;
            line-height: 24px;
        }
        .box .social-links{
            list-style: none;
            font-size: 20px;
        }
        .box .social-links li{
            display: inline-block;
            margin: 0 10px;
        }
        .box .social-links li a{
            color: #a6a6a6;
        }
        .box .social-links li a:hover{
            color: #fff;
        }
        .box .title:after,
        .box .description:after{
            content: "";
            width: 80%;
            display: block;
            border-bottom: 1px solid #fff;
            margin: 15px auto;
        }
        .box .rotate-img{
            transform: rotateY(0deg);
        }
        .box:hover .rotate-img{
            transform: rotateY(-90deg);
        }
        .box .rotate-content{
            transform: rotateY(90deg);
        }
        .box:hover .rotate-content{
            transform: rotateY(0deg);
        }
        .box .over-img{
            opacity:1;
            transform: translateY(0) rotateX(0deg);
        }
        .box:hover .over-img{
            opacity:0;
            transform: translateY(-100%) rotateX(90deg);
        }
        .box .over-content{
            opacity:0;
        }
        .box:hover .over-content{
            opacity:1;
        }
        .box .hover-img{
            opacity:1;
        }
        .box:hover .hover-img{
            opacity:0;
        }
        .box .hover-content{
            opacity:0;
        }
        .box:hover .hover-content{
            opacity:1;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="box-img over-img">
        <img src="images/1.jpg" alt="">
    </div>
    <div class="box-content over-content">
        <h4 class="title">Duende</h4>
        <p class="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae libero
            orci.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sed vestibulum.</p>
        <ul class="social-links">
            <li><a href="baicu.com">QQ</a></li>
            <li><a href="baicu.com">微博</a></li>
            <li><a href="baicu.com">微信</a></li>
        </ul>
    </div>
</div>

<div class="box">
    <div class="box-img rotate-img">
        <img src="images/1.jpg" alt="">
    </div>
    <div class="box-content rotate-content">
        <h4 class="title">Duende</h4>
        <p class="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae libero
            orci.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sed vestibulum.</p>
        <ul class="social-links">
            <li><a href="baicu.com">QQ</a></li>
            <li><a href="baicu.com">微博</a></li>
            <li><a href="baicu.com">微信</a></li>
        </ul>
    </div>
</div>

<div class="box">
    <div class="box-img hover-img">
        <img src="images/1.jpg" alt="">
    </div>
    <div class="box-content hover-content">
        <h4 class="title">Duende</h4>
        <p class="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae libero
            orci.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sed vestibulum.</p>
        <ul class="social-links">
            <li><a href="baicu.com">QQ</a></li>
            <li><a href="baicu.com">微博</a></li>
            <li><a href="baicu.com">微信</a></li>
        </ul>
    </div>
</div>
</body>
</html>